﻿using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;

using System.Drawing;
using System.Drawing.Imaging;
using ImgConventICO.ViewModels;

namespace ImgConventICO.Views
{
    public partial class RootView : HandyControl.Controls.Window
    {
        public RootView()
        {
            InitializeComponent();
        }

        private void ListView_PreviewMouseRightButtonUp(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            if (!(this.DataContext is RootViewModel model)) return;

            model.Info = model.SelectedItem.Id.ToString();
        }
    }
}
